package com.checkchan.ethshare.contract;

import org.web3j.abi.datatypes.Type;
import org.web3j.abi.datatypes.generated.Uint256;
import org.web3j.protocol.core.RemoteCall;
import org.web3j.protocol.core.methods.response.TransactionReceipt;

import java.util.List;

public interface ShareInterface {

    //获取分享活动总数
    public RemoteCall<Uint256> getShareCount();

    //获取分享活动详情
    public RemoteCall<List<Type>>  getShareInfo(int shareIndex);

    //获取参加分享的人数
    public RemoteCall<Uint256> getConfereeCount(int shareIndex);

    //获取参加分享者的信息
    public RemoteCall<List<Type>> getConfereeInfo(int shareIndex,int confereeIndex);

    //发起一个分享
    public RemoteCall<TransactionReceipt> raiseShare(String desc);


    //提交提交分享的分数
    public RemoteCall<TransactionReceipt> gradeShare(int index,int score);
}
